package com.example.myyunpan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.myyunpan.entity.domain.FileShare;
import com.example.myyunpan.entity.query.FileShareQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 111
* @description 针对表【file_share(分享信息)】的数据库操作Mapper
* @createDate 2024-10-23 11:41:27
* @Entity com/example/myyunpan.domain.FileShare
*/
@Mapper
public interface FileShareMapper extends BaseMapper<FileShare> {


    int findCountByParam(@Param("query") FileShareQuery query);

    List<FileShare> findListByParam(@Param("query") FileShareQuery query);

    Integer deleteFileShareBatch(@Param("shareArr") String[] shareArr,@Param("userId") String userId);

    FileShare selectByShareId(@Param("shareId") String shareId);

    void updateShareShowCount(String shareId);
}
